﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class DonViBLL
    {
        DonViDAL dv;
        public List<DONVI> LayDSDonVi()
        {
            dv = new DonViDAL();
            return dv.LayDSDonVi();
        }
        public List<DONVI> timKiem(string maDV,string tenDV)
        {
            return dv.timKiem(maDV, tenDV);
        }

        public bool ThemDonVi(DONVI s)
        {
            dv = new DonViDAL();
            return dv.ThemDonVi(s);
        }
        public bool suaDonVi(DONVI s)
        {
            dv = new DonViDAL();
            return dv.suaDonVi(s);
        }
        public bool xoaDonVi(string DonViID)
        {
            dv = new DonViDAL();
            return dv.xoaDonVi(DonViID);
        }
    }
}
